<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo C('site_name');?></title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">

<script type="text/javascript" src="<?php echo STATICS;?>/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<?php echo STATICS;?>/js/jquery.form.min.js"></script>
<script type="text/javascript" src="<?php echo STATICS;?>/layui/lay/dest/layui.all.js"></script>
<script type="text/javascript" src="<?php echo STATICS;?>/js/regExp.js"></script>
<script type="text/javascript" src="<?php echo RES;?>/js/common.js"></script>

<link rel="stylesheet" href="<?php echo STATICS;?>/layui/css/layui.css" media="all" />
<link rel="stylesheet" href="<?php echo STATICS;?>/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="<?php echo RES;?>/css/global.css" media="all">
<link rel="stylesheet" href="<?php echo RES;?>/css/uploadProgress.css" media="all">

</head>
<body>


<div class="admin-main">
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
		<legend>添加</legend>
	</fieldset>

	<form id="ajaxForm" class="layui-form" method="post" action="<?php echo U('Chexing/editcar');?>">
		<div class="layui-form-item">
			<label class="layui-form-label">车型</label>
			<div class="layui-input-block">
				<input type="text" name="name" value="<?php echo ($list["name"]); ?>" lay-verify="required" class="layui-input">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">发动机</label>
			<div class="layui-input-inline">
				<input type="text" name="fadongji" id="fadongji" value="<?php echo ($list["fadongji"]); ?>" class="layui-input" lay-verify="required"/>	
			</div>

			<label class="layui-form-label">底盘</label>
			<div class="layui-input-inline">
				<input type="text" name="dipan" id="dipan" value="<?php echo ($list["dipan"]); ?>" class="layui-input" />	
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">CC</label>
			<div class="layui-input-inline">
				<input type="text" name="cc" id="cc" value="<?php echo ($list["cc"]); ?>" class="layui-input" />	
			</div>

			<label class="layui-form-label">KW</label>
			<div class="layui-input-inline">
				<input type="text" name="kw" id="kw" value="<?php echo ($list["kw"]); ?>" class="layui-input" />	
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">类型</label>
			<div class="layui-input-inline">
				<input type="text" name="type" id="type" value="<?php echo ($list["type"]); ?>" class="layui-input" />	
			</div>
	
			<label class="layui-form-label">缸数</label>
			<div class="layui-input-inline">
				<input type="text" name="gangshu" id="gangshu" value="<?php echo ($list["gangshu"]); ?>" class="layui-input" />	
			</div>

			<label class="layui-form-label">年款</label>
			<div class="layui-input-inline">
				<input type="text" name="year" id="year" value="<?php echo ($list["year"]); ?>" class="layui-input" />	
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
			</div>
		</div>
		<input type="hidden" name="brandID" value="<?php echo ($chexing["brandID"]); ?>">
		<input type="hidden" name="chexingID" value="<?php echo ($chexing["id"]); ?>">
		<input type="hidden" name="id" value="<?php echo ($list["id"]); ?>">
	</form>
</div>
</body>
</html>